package spec.ocl_mcg;

import graph.mcg.CGNode;
import graph.mcg.ConstraintNode;

import org.eclipse.ocl.ecore.NullLiteralExp;


public class NullLiteralExpNode extends TreeNode implements LeafNode {
	private String name;

	public NullLiteralExpNode(){}
	
	public NullLiteralExpNode(NullLiteralExp exp){
		name = exp.getName();
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public CGNode toCG() {
		// TODO Auto-generated method stub
		ConstraintNode cfgnode = new ConstraintNode(this);
		cfgnode.setConstraint(name);
		cfgnode.setNextnode(null);
		return cfgnode;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
